import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Scanner;

public class a {
       
    public static void main(String[] args) {
        FileInputStream fis=null;
        System.out.println("kkk");
        Scanner inScanner = new Scanner(System.in);
        try {
             fis=new FileInputStream("D:\\temp");
             int data=fis.read();
             while(data!=-1)
             {
                 System.out.println((char)data);
                 data=fis.read();
             }

        } catch (FileNotFoundException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        } finally{

              if(fis!=null)
              {
                  try {
                      fis.close();
                  } catch (IOException e) {
                      e.printStackTrace();
                  }
              }
        }

    }
}
